-- CALC_CANNON_ADDITION_DAMAGE

-- 计算的加成伤害
return function()
    local damage = 0;

    -- 1.属性加成
    local cannon = ME.user.dbase:query("cannon");
    if type(cannon) == 'number' then
        damage = damage + cannon;
    end

    -- 2. 绝对值加成
    local propId = PropM.getPropId("attrib2");
    local prop = PropM.combine(ME.user, propId, "cannon");
    damage = PropM.apply(prop, damage);

    return damage;
end